<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
  <head>
    <title>$Title$</title>
  </head>
  <body>
  <c:choose>
      <%--当用户为空时    --%>
      <c:when test="${empty user}">
        您未登录，请
        <a href="login.jsp">登录</a>
      </c:when>
      <c:otherwise>
          ${user.username},欢迎你
          <a href="${pageContext.request.contextPath}/zhuxiao">退出</a>
      </c:otherwise>
  </c:choose>
  </body>
</html>
